var myChart2 = echarts.init(document.getElementById('container2'));
if(user_type=='10'){
    option = {
        title: {
            show: true,
            top:10,
            text: '合作伙伴及工具数',
            textStyle:{//标题样式
                color: '#ccc',
                fontWeight: 'bolder',
                fontSize: 16
            },
            x:'center'
        },
        series: [
            {
                name: ' 商户（家）',
                type: 'pie',
                radius: ['35%', '40%'],
                center: ['30%', '30%'],
                startAngle: 225,
                color: [new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                    offset: 0,
                    color: 'rgba(5,193,255,1)'
                }, {
                    offset: 1,
                    color: 'rgba(15,15,90,1)'
                }]), "transparent"],
                labelLine: {
                    normal: {
                        show: false
                    }
                },
                label: {
                    normal: {
                        position: 'center'
                    }
                },
                data: [
                    {
                        value: 75,
                        name: '商户',
                        label: {
                            normal: {
                                formatter: '商户',
                                textStyle: {
                                    color: '#ccc',
                                    fontSize: 16

                                }
                            }
                        }
                    }, {
                        value: 25,
                        name: '%',
                        label: {
                            normal: {
                                formatter: '\n'+merchant_count,
                                textStyle: {
                                    color: '#007ac6',
                                    fontSize: 30

                                }
                            }
                        }
                    },
                    {
                        value: 0,
                        name: '%',
                        label: {
                            normal: {
                                formatter: '家',
                                textStyle: {
                                    color: '#ccc',
                                    fontSize: 16

                                }
                            }
                        }
                    }]
            },
            {
                name: ' 门店',
                type: 'pie',
                radius: ['35%', '40%'],
                center: ['70%', '30%'],
                startAngle: 225,
                color: [new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                    offset: 0,
                    color: 'rgba(5,193,255,1)'
                }, {
                    offset: 1,
                    color: 'rgba(15,15,90,1)'
                }]), "transparent"],
                labelLine: {
                    normal: {
                        show: false
                    }
                },
                label: {
                    normal: {
                        position: 'center'
                    }
                },
                data: [{
                    value: 75,
                    name: '门店',
                    label: {
                        normal: {
                            formatter: '门店',
                            textStyle: {
                                color: '#ccc',
                                fontSize: 16

                            }
                        }
                    }
                }, {
                    value: 25,
                    name: '%',
                    label: {
                        normal: {
                            formatter: '\n'+store_count,
                            textStyle: {
                                color: '#007ac6',
                                fontSize: 30

                            }
                        }
                    }
                },
                    {
                        value: 0,
                        name: '%',
                        label: {
                            normal: {
                                formatter: '家',
                                textStyle: {
                                    color: '#ccc',
                                    fontSize: 16

                                }
                            }
                        }
                    }]
            },
            {
                name: ' 收银员',
                type: 'pie',
                radius: ['35%', '40%'],
                center: ['30%', '70%'],
                startAngle: 225,
                labelLine: {
                    normal: {
                        show: false
                    }
                },
                label: {
                    normal: {
                        position: 'center'
                    }
                },
                data: [{
                    value: 75,
                    "itemStyle": {
                        "normal": {
                            "color": new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                                "offset": 0,
                                color: 'rgba(5,193,255,1)'
                            }, {
                                offset: 1,
                                color: 'rgba(15,15,90,1)'
                            }]),
                        }
                    },
                    name: '收银员',
                    label: {
                        normal: {
                            formatter: '收银员',
                            textStyle: {
                                color: '#ccc',
                                fontSize: 16

                            }
                        }
                    }
                }, {
                    value: 25,
                    name: '%',
                    label: {
                        normal: {
                            formatter: '\n'+casher_count,
                            textStyle: {
                                color: '#007ac6',
                                fontSize: 30

                            }
                        }
                    }
                },
                    {
                        value: 0,
                        name: '%',
                        label: {
                            normal: {
                                formatter: '人',
                                textStyle: {
                                    color: '#ccc',
                                    fontSize: 16

                                }
                            }
                        }
                    }]
            },
            {
                name: '终端',
                type: 'pie',
                radius: ['35%', '40%'],
                center: ['70%', '70%'],
                startAngle: 225,
                labelLine: {
                    normal: {
                        show: false
                    }
                },
                label: {
                    normal: {
                        position: 'center'
                    }
                },
                data: [{
                    value: 75,
                    "itemStyle": {
                        "normal": {
                            "color": new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                                "offset": 0,
                                color: 'rgba(5,193,255,1)'
                            }, {
                                offset: 1,
                                color: 'rgba(15,15,90,1)'
                            }]),
                        }
                    },
                    name: '终端',
                    label: {
                        normal: {
                            formatter: '终端',
                            textStyle: {
                                color: '#ccc',
                                fontSize: 16

                            }
                        }
                    }
                }, {
                    value: 25,
                    name: '%',
                    label: {
                        normal: {
                            formatter: '\n'+device_count,
                            textStyle: {
                                color: '#007ac6',
                                fontSize: 30

                            }
                        }
                    }
                },
                    {
                        value: 0,
                        name: '%',
                        label: {
                            normal: {
                                formatter: '个',
                                textStyle: {
                                    color: '#ccc',
                                    fontSize: 16

                                }
                            }
                        }
                    }]
            },
        ]
    };
}else{
    option = {
        title: {
            show: true,
            top:10,
            text: '合作伙伴及工具数',
            textStyle:{//标题样式
                color: '#ccc',
                fontWeight: 'bolder',
                fontSize: 16
            },
            x:'center'
        },
        series: [
            {
                name: ' 门店',
                type: 'pie',
                radius: ['35%', '40%'],
                center: ['70%', '30%'],
                startAngle: 225,
                color: [new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                    offset: 0,
                    color: 'rgba(5,193,255,1)'
                }, {
                    offset: 1,
                    color: 'rgba(15,15,90,1)'
                }]), "transparent"],
                labelLine: {
                    normal: {
                        show: false
                    }
                },
                label: {
                    normal: {
                        position: 'center'
                    }
                },
                data: [{
                    value: 75,
                    name: '门店',
                    label: {
                        normal: {
                            formatter: '门店',
                            textStyle: {
                                color: '#ccc',
                                fontSize: 16

                            }
                        }
                    }
                }, {
                    value: 25,
                    name: '%',
                    label: {
                        normal: {
                            formatter: '\n'+store_count,
                            textStyle: {
                                color: '#007ac6',
                                fontSize: 30

                            }
                        }
                    }
                },
                    {
                        value: 0,
                        name: '%',
                        label: {
                            normal: {
                                formatter: '家',
                                textStyle: {
                                    color: '#ccc',
                                    fontSize: 16

                                }
                            }
                        }
                    }]
            },
            {
                name: ' 收银员',
                type: 'pie',
                radius: ['35%', '40%'],
                center: ['30%', '70%'],
                startAngle: 225,
                labelLine: {
                    normal: {
                        show: false
                    }
                },
                label: {
                    normal: {
                        position: 'center'
                    }
                },
                data: [{
                    value: 75,
                    "itemStyle": {
                        "normal": {
                            "color": new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                                "offset": 0,
                                color: 'rgba(5,193,255,1)'
                            }, {
                                offset: 1,
                                color: 'rgba(15,15,90,1)'
                            }]),
                        }
                    },
                    name: '收银员',
                    label: {
                        normal: {
                            formatter: '收银员',
                            textStyle: {
                                color: '#ccc',
                                fontSize: 16

                            }
                        }
                    }
                }, {
                    value: 25,
                    name: '%',
                    label: {
                        normal: {
                            formatter: '\n'+casher_count,
                            textStyle: {
                                color: '#007ac6',
                                fontSize: 30

                            }
                        }
                    }
                },
                    {
                        value: 0,
                        name: '%',
                        label: {
                            normal: {
                                formatter: '人',
                                textStyle: {
                                    color: '#ccc',
                                    fontSize: 16

                                }
                            }
                        }
                    }]
            },
            {
                name: '终端',
                type: 'pie',
                radius: ['35%', '40%'],
                center: ['70%', '70%'],
                startAngle: 225,
                labelLine: {
                    normal: {
                        show: false
                    }
                },
                label: {
                    normal: {
                        position: 'center'
                    }
                },
                data: [{
                    value: 75,
                    "itemStyle": {
                        "normal": {
                            "color": new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                                "offset": 0,
                                color: 'rgba(5,193,255,1)'
                            }, {
                                offset: 1,
                                color: 'rgba(15,15,90,1)'
                            }]),
                        }
                    },
                    name: '终端',
                    label: {
                        normal: {
                            formatter: '终端',
                            textStyle: {
                                color: '#ccc',
                                fontSize: 16

                            }
                        }
                    }
                }, {
                    value: 25,
                    name: '%',
                    label: {
                        normal: {
                            formatter: '\n'+device_count,
                            textStyle: {
                                color: '#007ac6',
                                fontSize: 30

                            }
                        }
                    }
                },
                    {
                        value: 0,
                        name: '%',
                        label: {
                            normal: {
                                formatter: '个',
                                textStyle: {
                                    color: '#ccc',
                                    fontSize: 16

                                }
                            }
                        }
                    }]
            },
        ]
    };
}
myChart2.setOption(option);